Class EnrollPhotoViewModel
Inheritance
System.Object
EnrollPhotoViewModel
Implements
System.ComponentModel.INotifyPropertyChanged
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Assembly: PersonManager.dll
Syntax
public class EnrollPhotoViewModel : INotifyPropertyChanged, IDialogRequestClose
Constructors
EnrollPhotoViewModel(IDialogService)
Declaration
public EnrollPhotoViewModel(IDialogService dialogService)
Parameters
Properties
_dialogService
instance dialog service (sprava dialogovych oken)
Declaration
protected IDialogService _dialogService { get; }
Property Value
CancelCommand
Vrati Command, ktery se spusti po stisknuti tlacitka Cancel
Declaration
public ICommand CancelCommand { get; protected set; }
Property Value
| Type |
Description |
| System.Windows.Input.ICommand |
|
DetectedFacesCount
Declaration
public int DetectedFacesCount { get; set; }
Property Value
| Type |
Description |
| System.Int32 |
|
DetectedFacesList
Declaration
public ObservableCollection<Image<Bgr, byte>> DetectedFacesList { get; set; }
Property Value
| Type |
Description |
| System.Collections.ObjectModel.ObservableCollection<Emgu.CV.Image<Emgu.CV.Structure.Bgr, System.Byte>> |
|
EnableComboBox
Declaration
public bool EnableComboBox { get; set; }
Property Value
| Type |
Description |
| System.Boolean |
|
Declaration
public bool EnableStartButton { get; set; }
Property Value
| Type |
Description |
| System.Boolean |
|
EnrollMethodsList
Declaration
public List<string> EnrollMethodsList { get; set; }
Property Value
| Type |
Description |
| System.Collections.Generic.List<System.String> |
|
EnrollResult
Declaration
public string EnrollResult { get; set; }
Property Value
| Type |
Description |
| System.String |
|
FacesFound
Declaration
public bool FacesFound { get; set; }
Property Value
| Type |
Description |
| System.Boolean |
|
ManagedDetectedFaces
Declaration
public BitmapSource ManagedDetectedFaces { get; set; }
Property Value
| Type |
Description |
| System.Windows.Media.Imaging.BitmapSource |
|
ManagedToken
Declaration
public byte[] ManagedToken { get; set; }
Property Value
| Type |
Description |
| System.Byte[] |
|
NewFrame
Declaration
public BitmapSource NewFrame { get; set; }
Property Value
| Type |
Description |
| System.Windows.Media.Imaging.BitmapSource |
|
NextFaceCommand
Vrati Command, ktery se spusti po stisknuti tlacitka Dalsi (tvar)
Declaration
public ICommand NextFaceCommand { get; set; }
Property Value
| Type |
Description |
| System.Windows.Input.ICommand |
|
NextFaceCommandEnabled
Declaration
public bool NextFaceCommandEnabled { get; set; }
Property Value
| Type |
Description |
| System.Boolean |
|
OkEnabled
Priznak aktivace tlacitka Ok
Declaration
public bool OkEnabled { get; }
Property Value
| Type |
Description |
| System.Boolean |
|
PhotoEnrollComplete
Declaration
public bool PhotoEnrollComplete { get; set; }
Property Value
| Type |
Description |
| System.Boolean |
|
PrevFaceCommand
Vrati Command, ktery se spusti po stisknuti tlacitka Predchozi (tvar)
Declaration
public ICommand PrevFaceCommand { get; set; }
Property Value
| Type |
Description |
| System.Windows.Input.ICommand |
|
PrevFaceCommandEnabled
Declaration
public bool PrevFaceCommandEnabled { get; set; }
Property Value
| Type |
Description |
| System.Boolean |
|
SelectedEnrollMethod
Declaration
public int SelectedEnrollMethod { get; set; }
Property Value
| Type |
Description |
| System.Int32 |
|
SelectedFace
Declaration
public int SelectedFace { get; set; }
Property Value
| Type |
Description |
| System.Int32 |
|
SelectedFile
Declaration
public string SelectedFile { get; set; }
Property Value
| Type |
Description |
| System.String |
|
StartEngineCommand
Vrati Command, ktery se spusti po stisknuti tlacitka Poridit snimek
Declaration
public ICommand StartEngineCommand { get; set; }
Property Value
| Type |
Description |
| System.Windows.Input.ICommand |
|
SubmitCommand
Vrati Command, ktery se spusti po stisknuti tlacitka Ok
Declaration
public ICommand SubmitCommand { get; protected set; }
Property Value
| Type |
Description |
| System.Windows.Input.ICommand |
|
Window
Declaration
public Window Window { get; set; }
Property Value
| Type |
Description |
| System.Windows.Window |
|
Methods
Metoda pro prevedeni obrazu z formatu Bitmap na format BitmapSource
Declaration
public BitmapSource Convert(Bitmap bitmap, PixelFormat pf)
Parameters
| Type |
Name |
Description |
| System.Drawing.Bitmap |
bitmap |
|
| System.Windows.Media.PixelFormat |
pf |
|
Returns
| Type |
Description |
| System.Windows.Media.Imaging.BitmapSource |
|
EnrollMethodChanged()
Metoda pro aktualizaci vybrane metody
Declaration
protected void EnrollMethodChanged()
PrepareEngine()
Metoda pro pripraveni zpusobu pridani fotky
Declaration
protected void PrepareEngine()
StartEngine()
Metoda pro spusteni snimani obliceju
Declaration
public void StartEngine()
SwitchFace()
Metoda pro prepnuti mezi obliceji
Declaration
protected void SwitchFace()
Events
CloseRequested
Event pro zajisteni obsluhy zavirani okna
Declaration
public event EventHandler<DialogCloseRequestedEventArgs> CloseRequested
Event Type
PropertyChanged
Event pro zajisteni bindovani a propsani zmen
Declaration
public event PropertyChangedEventHandler PropertyChanged
Event Type
| Type |
Description |
| System.ComponentModel.PropertyChangedEventHandler |
|
Implements
System.ComponentModel.INotifyPropertyChanged